home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / winontop / palette.frm < prev    next >
Text File  |  1995-05-02  |  5KB  |  184 lines

  1. VERSION 2.00
  2. Begin Form frmPalette 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Palette"
  5.    ClientHeight    =   2295
  6.    ClientLeft      =   1635
  7.    ClientTop       =   2490
  8.    ClientWidth     =   1935
  9.    ControlBox      =   0   'False
  10.    Height          =   2700
  11.    Left            =   1575
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   2295
  16.    ScaleWidth      =   1935
  17.    Top             =   2145
  18.    Width           =   2055
  19.    Begin CommandButton cmdQuit 
  20.       Caption         =   "Quit"
  21.       FontBold        =   0   'False
  22.       FontItalic      =   0   'False
  23.       FontName        =   "MS Sans Serif"
  24.       FontSize        =   8.25
  25.       FontStrikethru  =   0   'False
  26.       FontUnderline   =   0   'False
  27.       Height          =   375
  28.       Left            =   120
  29.       TabIndex        =   7
  30.       Top             =   1800
  31.       Width           =   1695
  32.    End
  33.    Begin CommandButton cmdDataCntrl 
  34.       Caption         =   ">|"
  35.       Enabled         =   0   'False
  36.       Height          =   375
  37.       Index           =   3
  38.       Left            =   1320
  39.       TabIndex        =   5
  40.       Top             =   1080
  41.       Width           =   495
  42.    End
  43.    Begin CommandButton cmdDataCntrl 
  44.       Caption         =   ">"
  45.       Enabled         =   0   'False
  46.       Height          =   375
  47.       Index           =   2
  48.       Left            =   960
  49.       TabIndex        =   4
  50.       Top             =   1080
  51.       Width           =   375
  52.    End
  53.    Begin CommandButton cmdDataCntrl 
  54.       Caption         =   "<"
  55.       Enabled         =   0   'False
  56.       Height          =   375
  57.       Index           =   1
  58.       Left            =   600
  59.       TabIndex        =   3
  60.       Top             =   1080
  61.       Width           =   375
  62.    End
  63.    Begin CommandButton cmdDataCntrl 
  64.       Caption         =   "|<"
  65.       Enabled         =   0   'False
  66.       Height          =   375
  67.       Index           =   0
  68.       Left            =   120
  69.       TabIndex        =   2
  70.       Top             =   1080
  71.       Width           =   495
  72.    End
  73.    Begin CommandButton cmdCloseData 
  74.       Caption         =   "Close Data Window"
  75.       Enabled         =   0   'False
  76.       FontBold        =   0   'False
  77.       FontItalic      =   0   'False
  78.       FontName        =   "MS Sans Serif"
  79.       FontSize        =   8.25
  80.       FontStrikethru  =   0   'False
  81.       FontUnderline   =   0   'False
  82.       Height          =   375
  83.       Left            =   120
  84.       TabIndex        =   1
  85.       Top             =   600
  86.       Width           =   1695
  87.    End
  88.    Begin CommandButton cmdOpenData 
  89.       Caption         =   "Open Data Window"
  90.       FontBold        =   0   'False
  91.       FontItalic      =   0   'False
  92.       FontName        =   "MS Sans Serif"
  93.       FontSize        =   8.25
  94.       FontStrikethru  =   0   'False
  95.       FontUnderline   =   0   'False
  96.       Height          =   375
  97.       Left            =   120
  98.       TabIndex        =   0
  99.       Top             =   120
  100.       Width           =   1695
  101.    End
  102.    Begin Label lblMove 
  103.       Alignment       =   2  'Center
  104.       BackColor       =   &H00C0C0C0&
  105.       FontBold        =   0   'False
  106.       FontItalic      =   0   'False
  107.       FontName        =   "MS Sans Serif"
  108.       FontSize        =   8.25
  109.       FontStrikethru  =   0   'False
  110.       FontUnderline   =   0   'False
  111.       Height          =   195
  112.       Left            =   0
  113.       TabIndex        =   6
  114.       Top             =   1560
  115.       Width           =   1935
  116.    End
  117. End
  118. Option Explicit
  119.  
  120. Sub cmdCloseData_Click ()
  121.     frmData.Hide
  122.     EnableButtons False
  123. End Sub
  124.  
  125. Sub cmdDataCntrl_Click (Index As Integer)
  126.     Select Case Index
  127.         Case 0
  128.             frmData.lblMove.Caption = "Moving to First Record"
  129.         Case 1
  130.             frmData.lblMove.Caption = "Moving to Previous Record"
  131.         Case 2
  132.             frmData.lblMove.Caption = "Moving to Next Record"
  133.         Case 3
  134.             frmData.lblMove.Caption = "Moving to Last Record"
  135.     End Select
  136. End Sub
  137.  
  138. Sub cmdDataCntrl_MouseMove (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  139.     Select Case Index
  140.         Case 0
  141.             lblMove.Caption = "Move to First Record"
  142.         Case 1
  143.             lblMove.Caption = "Move to Previous Record"
  144.         Case 2
  145.             lblMove.Caption = "Move to Next Record"
  146.         Case 3
  147.             lblMove.Caption = "Move to Last Record"
  148.     End Select
  149. End Sub
  150.  
  151. Sub cmdEnterData_Click ()
  152.     
  153. End Sub
  154.  
  155. Sub cmdOpenData_Click ()
  156.     frmData.lblMove.Caption = ""
  157.     frmData.Show
  158.     EnableButtons True
  159. End Sub
  160.  
  161. Sub cmdQuit_Click ()
  162.     End
  163. End Sub
  164.  
  165. Sub Form_Load ()
  166.     'Load the Data Entry form so redraws will be faster
  167.     Load frmData
  168. End Sub
  169.  
  170. Sub Form_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
  171.     lblMove.Caption = ""
  172. End Sub
  173.  
  174. Sub Form_Resize ()
  175.     Dim success%
  176.     'This statement will make the window NOT the topmost
  177.     'success% = SetWindowPos(Form1.hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, FLAGS)
  178.     
  179.     'This statement will make the window the topmost
  180.     success% = SetWindowPos(frmPalette.hWnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS)
  181.  
  182. End Sub
  183.  
  184.